const filit: Object = {
  state: {
    // 创建控制弹出框的状态
    navBool: false,
    dialogFormVisible: false,
    // 添加信息
    uplistData: {},
    // 编辑框信息
    listdata: {},
    tp: 'https://img.zcool.cn/community/01ea6d5937a396a8012193a38da23e.jpg@1280w_1l_2o_100sh.jpg',
    txt: '',
  },
  getters: {
  },
  mutations: {
    // 修改
    SET_DIALOG(state: any) {
      state.dialogFormVisible = !state.dialogFormVisible;
    },
    SET_NAV(state: any) {
      state.navBool = !state.navBool;
    },
    // json转化js对象在转化字符串
    List(state: any, obj: any) {
      state.listdata = JSON.parse(JSON.stringify(obj));
    },
    Data(state: any, obj: any) {
      state.uplistData = JSON.parse(JSON.stringify(obj));
    },
  },
  actions: {
  },
};
export default filit;
